package com.diaohw.module.websocket.properties;

import com.diaohw.platform.framework.web.ContentType;
import lombok.Data;
import org.springframework.http.HttpMethod;

import static com.diaohw.platform.common.constant.RequestConstant.AUTHORIZATION;

@Data
public class HttpMsgProcessProperties {
    /**
     * 是否启用
     */
    private boolean enable;
    /**
     * url
     */
    private String url;
    /**
     * 权限请求头
     */
    private String authorization = AUTHORIZATION;
    /**
     * 请求方法
     */
    private HttpMethod method = HttpMethod.GET;
    /**
     * 请求类型
     */
    private ContentType contentType = ContentType.JSON;
}
